package com.fzj.example.jdk18;

/**
 * ClassName: ConsumerTv
 * date: 2019/11/13 13:40
 * Description: TODO
 *
 * @author fanzj@bonree.com
 * @since JDK 1.8
 */
public class ConsumerTv {
    private int id;
    private String name;
    private Status status;
    private Double priceValue;
    private int num;
    private int hasSoleNum;

    public ConsumerTv(){}


    public ConsumerTv(int id, String name, Status status, Double priceValue, int num, int hasSoleNum) {
        this.id = id;
        this.name = name;
        this.status = status;
        this.priceValue = priceValue;
        this.num = num;
        this.hasSoleNum = hasSoleNum;
    }

    enum Status{
        NORMAL,COMMON,GOOD
    }

    public int getId() {
        return id;
    }

    public String getName() {
        return name;
    }

    public Status getStatus() {
        return status;
    }

    public Double getPriceValue() {
        return priceValue;
    }

    public int getNum() {
        return num;
    }

    public int getHasSoleNum() {
        return hasSoleNum;
    }
}
